<form action="{{$url}}" method="post">
    @csrf
    @if(isset($method))
        @method("$method")
    @endif
    <div id="{{$id}}" tabindex="-1" role="dialog" class="modal fade colored-header colored-header-primary show" style="display: none;">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header modal-header-colored">
                    <h3 class="modal-title">{{$title}}</h3>
                    <button type="button" data-dismiss="modal" aria-hidden="true" class="close md-close"><span class="mdi mdi-close">       </span></button>
                </div>
                {{--在当前模态框的组件内,定义一个特殊名字的占位符,叫$slot,注意,这里一定只能叫$slot,它能被外面@component组件调用中间的区域替换--}}
                {{$slot}}
                <div class="modal-footer">
                    <button type="submit" class="btn btn-primary md-close" style="display: {{$style}};">提交数据</button>
                </div>
            </div>
        </div>
    </div>
</form>









